package com.zhouchb.blog.dao;

import com.zhouchb.blog.bean.BlogsTags;
import com.zhouchb.blog.bean.Tag;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Author Zhouchb
 * @Create 2021-09-2021/9/8 :16:04
 * @Description
 */
@Mapper
public interface BlogTagsRepository {
    public int saveDao(BlogsTags blogsTags);
    public int saveListDao(@Param("blogsTags") List<BlogsTags> blogsTags);
    public List<BlogsTags> getByTagDao(Long tagId);
    public List<BlogsTags> getByBlogDao(Long blogId);
    public int delListByBlog(Long blogId);
}
